package java.com.it.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.it.reggie.dto.OrderDto;
import com.it.reggie.entity.OrderDetail;
import com.it.reggie.entity.Orders;

import java.util.List;
import java.util.Map;

public interface OrderService extends IService<Orders> {
    /**
     * 用户下单
     *
     * @param orders
     */
    void submit(Orders orders);

    //根据订单 id 来得到一个订单明细的集合
    List<OrderDetail> getOrderDetailListByOrderId(Long orderId);

    //用户查看自己的订单信息
    void page(Page<Orders> ordersPageInfo, Page<OrderDto> ordersDtoPageInfo);

    //再来一单
    public void againSubmit(Map<String, String> map);

}
